home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issue 15 / develop 15 code / Floating Windows / Sample / Source / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-13  |  1.3 KB  |  39 lines  |  [TEXT/MPS ]

  1. #ifndef    __Globals__
  2. #define    __Globals__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __WINDOWEXTENSIONS__
  9. #include "WindowExtensions.h"
  10. #endif
  11.  
  12. #define    rFatalErrorStringsID    128                    /* Resource ID of STR# with fatal error messages */
  13. #define    rFatalErrorAlertID        128                    /* Resource ID of ALRT used to display fatal error messages */
  14.  
  15. /*    Error message numbers */
  16.  
  17. #define    kSystemVersionTooOld    1                    /* Need system version with Gestalt */
  18. #define    kGestaltError            2                    /* Gestalt returned an error */
  19. #define    kNoAppleEvents            3                    /* AppleEvents not implemented */
  20. #define    kNoPPCToolbox            4                    /* PPC Toolbox not implemented */
  21. #define    kAEInstallError            5                    /* Error during AppleEvent handler installation */
  22.  
  23. /*    Global variables    */
  24.  
  25. Boolean    gDone;                            /* Set to true if user selects Quit */
  26. Boolean gInBackground;                    /* Set to true if app is switched into background */
  27. short    gTimeToDialogDismissal;
  28. Rect    gDragArea;                        /* Area in which a window can be dragged */
  29. Rect    gGrowBounds;                    /* Min and maximum size a window can be sized to */
  30.  
  31. WindowRef    gRecordingFloater;            // Reference to recording floating window
  32. WindowRef    gToolsFloater;                // Reference to tools floating window
  33.  
  34. // UniversalProcPtrs
  35.  
  36. ActivateHandlerUPP    gRecordingFloaterActivateHandler;
  37. ActivateHandlerUPP    gToolsFloaterActivateHandler;
  38. ActivateHandlerUPP    gActivateEventHandler;
  39. #endif